favourite_languages = {
    'jen': 'python',
    'sarah': 'c',
    'edward': 'ruby',
    'phil': 'python',
}

person_list = ['sarah', 'jack', 'tom', 'alan', 'phil', 'rose', 'lucy']

for person_name in person_list:
    if person_name in favourite_languages.keys():
        print(f"{person_name},您已参与调查，十分感谢您的配合")
    else:
        print(f"{person_name},您还没有参与调查，近期我们会联系您进行调查")